package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * carte服务器对象 xxk_carte
 * 
 * @author ruoyi
 * @date 2024-02-28
 */
public class XxkCarte extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一ID */
    private Long id;

    /** 编码 */
    @Excel(name = "编码")
    private String carteCode;

    /** 编码 */
    @Excel(name = "分组名称")
    private String groupName;

    /** 名称 */
    @Excel(name = "名称")
    private String carteName;

    /** ip地址 */
    @Excel(name = "ip地址")
    private String carteIp;

    /** 端口 */
    @Excel(name = "端口")
    private String cartePort;

    /** 用户名 */
    @Excel(name = "用户名")
    private String carteUsername;

    /** 密码 */
    @Excel(name = "密码")
    private String cartePassword;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Long orderNum;

    @Excel(name = "权重，值越到权重越高")
    private Long weight;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCarteCode(String carteCode) 
    {
        this.carteCode = carteCode;
    }

    public String getCarteCode() 
    {
        return carteCode;
    }
    public void setCarteName(String carteName) 
    {
        this.carteName = carteName;
    }

    public String getCarteName() 
    {
        return carteName;
    }
    public void setCarteIp(String carteIp) 
    {
        this.carteIp = carteIp;
    }

    public String getCarteIp() 
    {
        return carteIp;
    }
    public void setCartePort(String cartePort) 
    {
        this.cartePort = cartePort;
    }

    public String getCartePort() 
    {
        return cartePort;
    }
    public void setCarteUsername(String carteUsername) 
    {
        this.carteUsername = carteUsername;
    }

    public String getCarteUsername() 
    {
        return carteUsername;
    }
    public void setCartePassword(String cartePassword) 
    {
        this.cartePassword = cartePassword;
    }

    public String getCartePassword() 
    {
        return cartePassword;
    }
    public void setOrderNum(Long orderNum) 
    {
        this.orderNum = orderNum;
    }

    public Long getOrderNum() 
    {
        return orderNum;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("carteCode", getCarteCode())
            .append("groupName", getGroupName())
            .append("carteName", getCarteName())
            .append("carteIp", getCarteIp())
            .append("cartePort", getCartePort())
            .append("carteUsername", getCarteUsername())
            .append("cartePassword", getCartePassword())
            .append("orderNum", getOrderNum())
            .append("weight", getWeight())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public Long getWeight() {
        return weight;
    }

    public void setWeight(Long weight) {
        this.weight = weight;
    }
}
